<?php

declare(strict_types=1);

namespace app\index\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class Category extends Model
{
    //
    protected $name = 'campus_categories';

    public function getActiveCategories()
    {
        return $this->field('category_id,category_name,category_identifier,category_sort,category_status')->where('category_status', 1)->order('category_sort', 'asc')->select();
    }
}
